# -- Add target to global list --
#list(APPEND MOD_FEM_EXEC_LIST "CREATE_PDD_HMT_PRISM")
set(MOD_FEM_EXEC_LIST "${MOD_FEM_EXEC_LIST}" PARENT_SCOPE)

# -- Exec files --
set(pdd_heat_srcdir "${CMAKE_SOURCE_DIR}/pdd_heat")

# -- Include directories --
list(APPEND PDD_HEAT_INCLUDE_DIRS
  ${pdd_heat_srcdir}/input_output
  ${pdd_heat_srcdir}/materials
  ${pdd_heat_srcdir}/weak_formulation
  ${pdd_heat_srcdir}/include
  ${pdd_heat_srcdir}/
)
if(PDD_HEAT_INCLUDE_DIRS)
  set(PDD_HEAT_INCLUDE_DIRS ${PDD_HEAT_INCLUDE_DIRS} PARENT_SCOPE)
endif()
# -- Source files list --
collect_src_from_include_dirs(PDD_HEAT_INCLUDE_DIRS)
# -- Target --
include_directories(${PDD_HEAT_INCLUDE_DIRS} ${PDD_HEAT_EXTERNAL_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)

#if(CREATE_PDD_HMT_PRISM)
  add_library(pdl_heat ${SOURCE_FILES})
  target_link_libraries(pdl_heat ${PDD_HEAT_EXTERNAL_LIBRARIES})
  SET_TARGET_PROPERTIES(pdl_heat PROPERTIES COMPILE_DEFINITIONS ${MODFEM_MPI_CODE_DEFINE})
  SET_TARGET_PROPERTIES(pdl_heat PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS}")
  SET_TARGET_PROPERTIES(pdl_heat PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
#endif()

